const { src, dest, parallel } = require('gulp');
var uglify = require('gulp-uglify');
var obfuscate = require('gulp-obfuscate');
function js() {
  return src('./src/main.js', { sourcemaps: true })
	  .pipe(uglify())
	  .pipe(obfuscate())
    .pipe(dest('build/js', { sourcemaps: true }))
}

exports.default = js;